package com.xty.combo;

import com.xty.commodity.foodFactory.FoodFactory;
import com.xty.commodity.foodFactory.iteamFactories.BurgerFactory;
import com.xty.commodity.foodFactory.iteamFactories.CokeFactory;
import com.xty.constant.DefaultValue;

/**
 * Created By IntelliJ IDEA
 *
 * @author 许腾洋
 * @date 2021/11/25
 * description:
 */
public class MealBuilder {
    private FoodFactory burgerFactory = new BurgerFactory();
    private FoodFactory cokeFactory = new CokeFactory();

    public Meal getMealOne() {
        Meal meal = new Meal();
        meal.add(burgerFactory.getItem(DefaultValue.CHICKEN_BURGER));
        meal.add(cokeFactory.getItem(DefaultValue.COKE));
        return meal;
    }

    public Meal getMealTwo() {
        Meal meal = new Meal();
        meal.add(burgerFactory.getItem(DefaultValue.VEG_BURGER));
        meal.add(cokeFactory.getItem(DefaultValue.PEPSI));
        return meal;
    }

    public Meal getMealThree() {
        Meal meal = new Meal();
        meal.add(burgerFactory.getItem(DefaultValue.VEG_BURGER));
        meal.add(cokeFactory.getItem(DefaultValue.COKE));
        return meal;
    }

    public Meal getMealFour() {
        Meal meal = new Meal();
        meal.add(burgerFactory.getItem(DefaultValue.CHICKEN_BURGER));
        meal.add(cokeFactory.getItem(DefaultValue.PEPSI));
        return meal;
    }

    public Meal getMealFive() {
        Meal meal = new Meal();
        meal.add(burgerFactory.getItem(null));
        meal.add(cokeFactory.getItem(DefaultValue.PEPSI));
        return meal;
    }
}
